<template>
  <div class="magin-login">
     <transition name="fade">
      <keep-alive>
        <router-view></router-view>
        </keep-alive>
        </transition>
  </div>
</template>
<script>
export default {
  name:'MaginLogin',
  data(){
    return{
      userInfo:{
        nick:null,
        ulevel:null,
        uid:null,
        portrait:null
      }
    }
  },
   mounted(){
    this.getUserInfo()
  },
  methods:{
    getUserInfo(){
      this.userInfo={
        nick:'秋枫',
        ulevel:'20',
        uid:'10000',
        portrait:'~assets/img/006.jpg'
      }
      this.$store.commit('updateUserInfo',this.userInfo)
    },
    
  },
 
}
</script>